<%-- 
    Document   : ProgramCommiteeNetworkBuilding
    Created on : Jun 27, 2011, 1:46:16 PM
    Author     : Tin Huynh
--%>

<%@page import="uit.tkorg.coauthorgraph.dto.ConferenceDTO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
    String resultMessage = (String) request.getAttribute("resultMessage");
    ArrayList confDTOList = (ArrayList) session.getAttribute("confDTOList");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Build Co-Author Network</title>
<script language="javascript">
</script>
</head>
<body>
<center><h1><font>Build CoAuthor NetWork for Program-Committee</font></h1></center>
<%  if ((resultMessage != null) && (!resultMessage.equals(""))) {
%>
<font color="red"><%=resultMessage%></font><br>
<%
    }
%>
<a href="./GoIndexPageServlet">Home</a>&nbsp;&nbsp;&nbsp;
<a href="./GoBibliographyDBBuildingServlet">Build & Enrich CS Publications Bibliography DB</a>&nbsp;&nbsp;&nbsp;
<a href="./GoCoAuthorGraphBuildingServlet">Build Co-Author Network</a>&nbsp;&nbsp;&nbsp;
<a href="./GoProgramCommiteeNetworkBuildingServlet">Build CoAuthor NetWork for Program-Committee</a>&nbsp;&nbsp;&nbsp;
<hr width="100%" size=10 color="#EBEBEB">

<form name="BuildProgramCommiteeNetworkForm" action="./LoadProgramCommitteeFromFileServlet" method="post"
      ENCTYPE="multipart/form-data" method="post">
Select Program Committee File<br>
<input type="file" size="70" name="programCommiteeFile" id="programCommiteeFile" value="Browse">
<input type="submit" name="loadTextFile" value="Load File">
</form>
<%
if (confDTOList != null && confDTOList.size() > 0) {
    for (int i=0; i<confDTOList.size(); i++) {
        ConferenceDTO confDTO = (ConferenceDTO) confDTOList.get(i);
%>
        <hr width="100%" size=10 color="#EBEBEB">
        <b><%=confDTO.getConferenceName()%></b><br>
        <select name="authorList" id="authorListId" size="5" style="width: 445px" multiple>
<%
        ArrayList authorListOfProgCommittee = (ArrayList) confDTO.getAuthorListOfProgCommittee();
        for (int j=0; j<authorListOfProgCommittee.size(); j++) {
%>
            <option><%=(String) authorListOfProgCommittee.get(j)%></option>
<%
        }
%>
        </select>
    <%
    }%>

<%    
} %>

<hr width="100%" size=10 color="#EBEBEB">
<form action="./BuildProgramCommitteeGraphServlet" method="post">
Depth Level:
<select name="depthLevel">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>Unlimited</option>
</select><br><br>
<input type="submit" value="Build Co-Author Network For Program Commitee">
</form>
</body>
</html>

